import * as categoryDescDao from '../dao/g_category_desc.dao';

export async function getCategoryDescList(query: any, offset: number = 0, limit: number = 10) {
    return await categoryDescDao.getCategoryDescList(offset, limit);
}

export async function getCategoryDescById(id: number) {
    return await categoryDescDao.getCategoryDescById(id);
}

export async function createCategoryDesc(data: any) {
    return await categoryDescDao.createCategoryDesc(data);
}

export async function updateCategoryDesc(id: number, data: any) {
    return await categoryDescDao.updateCategoryDesc(id, data);
}

export async function deleteCategoryDesc(id: number) {
    return await categoryDescDao.deleteCategoryDesc(id);
}

export async function getCategoryDescByAlias(alias: string) {
    return await categoryDescDao.getCategoryDescByAlias(alias);
} 